<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head th:include="common/common :: jscss">
    <title>服务时长</title>
</head>
<body>
<div class="layui-fluid">

    <blockquote class="layui-crumb">
        <a lay-href="/service/tariff/list.action">价格表管理&nbsp;&nbsp;</a>/&nbsp;
        <span th:text="${faultTariff.tariffName}"></span>&nbsp;&nbsp;/&nbsp;
        <span th:text="${servCategory.name}"></span>&nbsp;&nbsp;/&nbsp;
        <span th:text="${baseCategory.name}"></span>&nbsp;&nbsp;/&nbsp;
        <span>使用项目</span>&nbsp;&nbsp;/&nbsp;
        <span th:text="${faultGroup.groupAlias}"></span>&nbsp;&nbsp;/&nbsp;
        <span th:text="${faultItem.itemId>1?faultItem.itemName:'新增项目'}"></span>

    </blockquote>

    <div class="layui-card">
        <div th:replace="service/item/_detailtab::tab"></div>
        <div class="layui-card-body">
            <form method="POST" class="layui-form" action="">
                <input type="hidden" name="itemId" th:value="${faultItem.itemId}"/>

            </form>
            <div class="layui-card-header layui-margin-b"><b>服务时长</b></div>
            <!--配置id-->
            <div class="layui-form-item" th:if="${faultItem.itemId > 0}">
                <label class="layui-form-label">ID：</label>
                <div class="layui-input-block" style="width: 50%;">
                    <div class="layui-form-mid">
                        <span th:text="${faultItem.itemId}">ID</span>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">通用时长：</label>
                <div class="layui-input-block" style="width: auto">
                    <input type="text" name="service_minutes" id="serviceMinutes" lay-filter="serviceMinutes"
                           th:value="${faultItem.serviceMinutes}" style="width: 100px;display: inline-block;"
                           placeholder="" lay-verify="serviceMinutes" autocomplete="off" min="1"
                           class="layui-input" maxlength="10"/>
                    <span style="color: #999;"> 对上门-服务完成的时长限制，低于设置的时长不能操作完成订单，不设置表示不限制，没有取到服务项时，取前台二级分类的时长限制，单位：分钟</span>
                </div>
            </div>
            <div class="layui-split">&nbsp;</div>
            <div class="layui-card-body" id="table_body">
                <div th:replace="service/item/_companyTable::table"/>
            </div>
        </div>
    </div>
</div>
</body>
</html>
<script type="text/javascript" th:inline="javascript">
    let json = {
        items: [[${items}]],
        faultItem: [[${faultItem}]],
        query: [[${query}]],
        totalCount: [[${query.totalCount}]],
        pageSize: [[${query.pageSize}]],
        pageIndex: [[${query.pageIndex}]]
    }
    layui.config({
        base: "/static/lay/",
        version: 2011241001241
    }).extend({
        index: "lib/index",
        serv_service_item_time: "service/item/serv.service.item.time"
    }).use(['index', 'serv_service_item_time']);

</script>
